<?php
// -----------------------------------------------------------------------------
// include
// -----------------------------------------------------------------------------

include "../../config/config.php";
include "../../auth.php";
include "../../DBManager.php";

// -----------------------------------------------------------------------------
// 对象初始化
// -----------------------------------------------------------------------------

$dbPath = "../../" . $dbPath; // 不加这行语句的话会报错，提示找不到对应路径
$db = new DBManager("sqlite:" . $dbPath);

// -----------------------------------------------------------------------------
// 访问设置
// -----------------------------------------------------------------------------

if (!isset($_GET['date'])) {
    exit("需要传入有效的参数！");
}

$date = $_GET['date'];

// -----------------------------------------------------------------------------

echo $db->readFromSpecificDate($date);
